//导入 axios.js
// import axios from 'axios';
const axios = require('axios');

//发送 AJAX 请求
axios.get('http://localhost:3001/todo/1')
.then(response => {
  console.log(response.data);
});